﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAzure.ServiceRuntime;

namespace StartupTaskRunner
{
    internal class StorageDALFactory
    {
        public static IStorageDAL GetStorageDAL()
        {
            IStorageDAL storageDal = null;
            if (RoleEnvironment.IsAvailable)
            {
                storageDal = new BlobStorageDAL();
            }
            else
            {
                storageDal = new DevStorageDAL();
            }

            return storageDal;
        }
    }
}
